package com.samphanie.auiu.auth.feign;

import com.samphanie.auiu.common.dto.SendEmailDto;
import com.samphanie.auiu.common.dto.SendSmsDto;
import com.samphanie.auiu.common.utils.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author ZSY
 * @email 1451691457@qq.com
 */
@FeignClient("auiu-third-party")
public interface IThirdPartyService {

    @PostMapping("/sms/sendSms")
    ApiResponse<?> sendSmsCode(@RequestBody SendSmsDto sendSmsDto);

    @PostMapping("/email/sendEmail")
    ApiResponse<?> sendEmail(@RequestBody SendEmailDto sendEmailDto);

}
